Auto merge of #2870 - matklad:add-host-triple, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 14 Jul 2016 06:54:09 +0000 (23:54 -0700)
committerGitHub <noreply@github.com>
Thu, 14 Jul 2016 06:54:09 +0000 (23:54 -0700)
commitef9467fab3c4a98653c40d317890c337bf8e32fe
treee236e86b729bc03ccce9795f20b550bcf18c86fd
parent61885fb6c1b9035dd632137eb45cb9b5b8909e10
parentd469bbcb16d0bd0231614e4776ff712ee4dcf2ff
Auto merge of #2870 - matklad:add-host-triple, r=alexcrichton

Refactor `host/target_triple` handling

This PR adds an explicit `host_triple` filed to `BuildConfig`. It allows to unify host and target handling and to reduce the number of accesses to `config.rustc_info()`. As a side effect, the explicit `target_triple` field of `Context` is gone because it can now be calculated from the `BuildConfig`.